package fms.webservice.server.service;

import fms.webservice.server.common.Request;
import fms.webservice.server.common.Response;
import org.apache.log4j.Logger;

import javax.jws.WebMethod;
import javax.jws.WebService;

@WebService(name="FMLWebService", targetNamespace="http://fms.com.cn/", serviceName="FMLWebService")
 public class FMLWebService {
    MyService myService = new MyService();
    private static Logger logger = Logger.getLogger(FMLWebService.class);

    @WebMethod
    public Response GetWind(Request windRequest) {
        //PropertyConfigurator.configure("./config/log4j.properties");
        logger.info("[开始] WebService风温请求 ...");
        return myService.GetWind(windRequest);
    }

    @WebMethod
    public Response GetPosition(Request posRequest) {
        //PropertyConfigurator.configure("./config/log4j.properties");
        logger.info("[开始] WebService位置报请求 ...");
        return myService.GetPosition(posRequest);
    }

    @WebMethod
    public Response GetAutoPos(Request autoRequest) {
        //PropertyConfigurator.configure("./config/log4j.properties");
        logger.info("[开始] WebService自动位置报请求 ...");
        return myService.GetAutoPos(autoRequest);
    }

}